export const SELECT_DATA = ['交易单元', '日期', '时点'];
export const planParams = {
  plan: '计划电量',
  operate: '经营电量',
  // settlement: '参考电量',
  settlement: '结算电量',
  guoneng: '国能日新预测',
  huineng: '金风慧能预测',
};
export const OPTION_KEY = {
  1: 'January',
  2: 'February',
  3: 'March',
  4: 'April',
  5: 'May',
  6: 'June',
  7: 'July',
  8: 'August',
  9: 'September',
  10: 'October',
  11: 'November',
  12: 'December',
};
export const colorOptions = ['#30D485', '#FFD60A', '#FA752B'];
export const tableHead = [
  {
    field: 'unit',
    name: '交易单元',
    width: 300,
  },
  {
    field: 'planStatus',
    name: '计划状态',
    width: 200,
  },
  {
    field: 'yearPlanTotal',
    name: '年计划总量',
    width: 200,
  },
  {
    field: 'publicPlan',
    name: '计划发布/编辑时间',
    width: 200,
  },
  {
    field: 'opUserName',
    name: '操作人',
    width: 200,
  },
  {
    field: 'operation',
    name: '操作',
    width: 200,
  },
];
export const tableHead_1 = [
  {
    field: '2022_plan',
    name: '计划电量',
    parentName: '2022年计划合计',
  },
  {
    field: '2022_guoneng',
    name: '国能日新预测',
    parentName: '2022年计划合计',
  },
  {
    field: '2022_jinfeng',
    name: '金风慧能预测',
    parentName: '2022年计划合计',
  },
  {
    field: '2021_planPower',
    name: '计划电量',
    parentName: '2021年参考合计',
  },
  {
    field: '2021_settlement',
    name: '结算电量',
    parentName: '2021年参考合计',
  },
  {
    field: '2021_guoneng',
    name: '国能日新预测',
    parentName: '2021年参考合计',
  },
  {
    field: '2022_jinfeng',
    name: '金风慧能预测',
    parentName: '2021年参考合计',
  },
];
export const tableHead_2 = [
  {
    field: 'count',
    name: '合计',
  },
  {
    field: 'January',
    name: '1月',
  },
  {
    field: 'February',
    name: '2月',
  },
  {
    field: 'March',
    name: '3月',
  },
  {
    field: 'April',
    name: '4月',
  },
  {
    field: 'May',
    name: '5月',
  },
  {
    field: 'June',
    name: '6月',
  },
  {
    field: 'July',
    name: '7月',
  },
  {
    field: 'August',
    name: '8月',
  },
  {
    field: 'September',
    name: '9月',
  },
  {
    field: 'October',
    name: '10月',
  },
  {
    field: 'November',
    name: '11月',
  },
  {
    field: 'December',
    name: '12月',
  },
];
export const tableHead_3 = [
  {
    field: 'January',
    name: '1月',
  },
  {
    field: 'February',
    name: '2月',
  },
  {
    field: 'March',
    name: '3月',
  },
  {
    field: 'April',
    name: '4月',
  },
  {
    field: 'May',
    name: '5月',
  },
  {
    field: 'June',
    name: '6月',
  },
  {
    field: 'July',
    name: '7月',
  },
  {
    field: 'August',
    name: '8月',
  },
  {
    field: 'September',
    name: '9月',
  },
  {
    field: 'October',
    name: '10月',
  },
  {
    field: 'November',
    name: '11月',
  },
  {
    field: 'December',
    name: '12月',
  },
];
export const tableHead_4 = [
  {
    field: 'plan',
    name: '计划电量',
  },
  {
    field: 'operate',
    name: '经营电量',
  },
  {
    field: 'settlement',
    name: '结算电量',
  },
  {
    field: 'guoneng',
    name: '国能日新预测',
  },
  {
    field: 'huineng',
    name: '金风慧能预测',
  },
];
export const tableHead_4_PXBNX = [
  {
    field: 'plan',
    name: '计划电量',
  },
  {
    field: 'settlement',
    name: '结算电量',
  },
];
export const tableYearData = [
  {
    title: 'sss',
    '2022_planPower': '122',
    '2022_guoneng': '1',
    '2022_jinfeng': '22',
    '2021_planPower': '122',
    '2021_settlement': '22',
    '2021_guoneng': '1',
    '2021_jinfeng': '22',
  },
];
export const tableMonthData = [
  {
    unit: '大山台1期',
    planStatus: '',
    expand: false,
    data: [
      {
        title: '2022年计划电量',
        count: '100',
        January: '122',
        February: '1',
        March: '22',
        April: '122',
        May: '22',
        June: '1',
        July: '22',
        August: '2',
        September: '3',
        October: '1',
        November: '4',
        December: '5',
      },
      {
        title: '2021年计划电量',
        count: '100',
        January: '122',
        February: '1',
        March: '22',
        April: '122',
        May: '22',
        June: '1',
        July: '22',
        August: '2',
        September: '3',
        October: '1',
        November: '4',
        December: '5',
      },
      {
        title: '2021年结算电量',
        count: '100',
        January: '122',
        February: '1',
        March: '22',
        April: '122',
        May: '22',
        June: '1',
        July: '22',
        August: '2',
        September: '3',
        October: '1',
        November: '4',
        December: '5',
      },
    ],
  },
  {
    unit: '大山台1期',
    planStatus: '',
    expand: false,
    data: [
      {
        title: '2021年计划电量',
        count: '100',
        January: '122',
        February: '1',
        March: '22',
        April: '122',
        May: '22',
        June: '1',
        July: '22',
        August: '2',
        September: '3',
        October: '1',
        November: '4',
        December: '5',
      },
    ],
  },
  {
    unit: '大山台1期',
    planStatus: '',
    expand: false,
    data: [
      {
        title: '2021年结算电量',
        count: '100',
        January: '122',
        February: '1',
        March: '22',
        April: '122',
        May: '22',
        June: '1',
        July: '22',
        August: '2',
        September: '3',
        October: '1',
        November: '4',
        December: '5',
      },
    ],
  },
];
export const tableMonthData_1 = [
  {
    title: '2022年计划比例',
    January: '0',
    February: '0',
    March: '0',
    April: '0',
    May: '0',
    June: '0',
    July: '0',
    August: '0',
    September: '0',
    October: '0',
    November: '0',
    December: '0',
    editor: 1,
  },
  {
    title: '2021年计划比例',
    January: '122',
    February: '1',
    March: '22',
    April: '122',
    May: '22',
    June: '1',
    July: '22',
    August: '2',
    September: '3',
    October: '1',
    November: '4',
    December: '5',
    editor: 0,
  },
  {
    title: '2021年结算比例',
    January: '122',
    February: '1',
    March: '22',
    April: '122',
    May: '22',
    June: '1',
    July: '22',
    August: '2',
    September: '3',
    October: '1',
    November: '4',
    December: '5',
    editor: 0,
  },
];
export const yearTableData = [
  {
    title: 'sss',
    planPower: '122',
    guoneng: '1',
  },
  {
    title: 's1ss',
    planPower: '122',
    guoneng: '1',
  },
];
export const tableMonthData_2 = [
  {
    title: '2022年计划电量',
    January: '0',
    February: '0',
    March: '0',
    April: '0',
    May: '0',
    June: '0',
    July: '0',
    August: '0',
    September: '0',
    October: '0',
    November: '0',
    December: '0',
    editor: 1,
  },
  {
    title: '2021年计划电量',
    January: '122',
    February: '1',
    March: '22',
    April: '122',
    May: '22',
    June: '1',
    July: '22',
    August: '2',
    September: '3',
    October: '1',
    November: '4',
    December: '5',
    editor: 0,
  },
  {
    title: '2021年结算电量',
    January: '122',
    February: '1',
    March: '22',
    April: '122',
    May: '22',
    June: '1',
    July: '22',
    August: '2',
    September: '3',
    October: '1',
    November: '4',
    December: '5',
    editor: 0,
  },
];
export const issueStatus = [
  { label: '全部', value: '2' },
  { label: '成功', value: '1' },
  { label: '失败', value: '0' },
];
export const SORT = {
  desc: 'desc',
  asc: 'asc',
};
export const detailList = [
  '已经制定计划并完成发布的场站。',
  '没有制定计划的场站。',
  '已经制定发电计划但未发布的场站。',
  '已完成计划被修改后保存未发布的计划数。',
];
export const tabList = [
  '交易单元总数',
  '计划已完成数',
  '待制定计划数',
  '待发布计划数',
  '修改待发布计划数',
];
export const tabOption = [
  {
    label: '全部计划状态',
    value: 'null',
  },
  {
    label: '计划已完成数',
    value: '1',
  },
  {
    label: '待制定计划数',
    value: '-1',
  },
  {
    label: '待发布计划数',
    value: '0',
  },
  {
    label: '修改待发布计划数',
    value: '2',
  },
];
export const tabOption_1 = [
  {
    label: '全部计划状态',
    value: 'null',
  },
  {
    label: '已完成',
    value: '1',
  },
  {
    label: '待制定',
    value: '-1',
  },
  {
    label: '待发布',
    value: '0',
  },
  {
    label: '修改待发布',
    value: '2',
  },
];
export const planOption = [
  { label: '年计划', value: '0' },
  { label: '月计划', value: '1' },
];
export const YearOptions = (current) =>
  Array.from({ length: 10 }, (_, i) => ({ label: current - (i + 1), value: current - (i + 1) }));
export const configureRadiusSvg = () => (
  <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path
      d="M5.0625 5H2.0625"
      stroke="#18A0FB"
      strokeWidth="1.2"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
    <path
      d="M6 2.5H8C8.27614 2.5 8.5 2.72386 8.5 3V7C8.5 7.27614 8.27614 7.5 8 7.5H6C5.72386 7.5 5.5 7.27614 5.5 7V3C5.5 2.72386 5.72386 2.5 6 2.5Z"
      stroke="#18A0FB"
    />
    <path
      d="M16.3125 5H9.0625"
      stroke="#18A0FB"
      strokeWidth="1.2"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
    <path
      d="M13 13H16.3125"
      stroke="#18A0FB"
      strokeWidth="1.2"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
    <path
      d="M12 10.5H10C9.72386 10.5 9.5 10.7239 9.5 11V15C9.5 15.2761 9.72386 15.5 10 15.5H12C12.2761 15.5 12.5 15.2761 12.5 15V11C12.5 10.7239 12.2761 10.5 12 10.5Z"
      stroke="#18A0FB"
    />
    <path
      d="M2.0625 13H9.3125"
      stroke="#18A0FB"
      strokeWidth="1.2"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
  </svg>
);
export const imgString = [
  '',
  '',
  '',
  '',
  '',
];
export const imgString_1 =
  '';
export const imgString_2 =
  '';
export const imgString_3 =
  '';

export const planOptions = [
  { label: '月计划', value: 1 },
  { label: '年计划', value: 0 },
];

export const monthList = Array.from({ length: 12 }, (_, i) => i + 1 + '月');

export const OPTIONS_LIST = [
  { label: '发电计划', value: 1 },
  { label: '导入发电计划', value: 2 },
];

export const timeIntervals = [
  { title: '00:00', dataIndex: '0', key: '0' },
  { title: '01:00', dataIndex: '1', key: '1' },
  { title: '02:00', dataIndex: '2', key: '2' },
  { title: '03:00', dataIndex: '3', key: '3' },
  { title: '04:00', dataIndex: '4', key: '4' },
  { title: '05:00', dataIndex: '5', key: '5' },
  { title: '06:00', dataIndex: '6', key: '6' },
  { title: '07:00', dataIndex: '7', key: '7' },
  { title: '08:00', dataIndex: '8', key: '8' },
  { title: '09:00', dataIndex: '9', key: '9' },
  { title: '10:00', dataIndex: '10', key: '10' },
  { title: '11:00', dataIndex: '11', key: '11' },
  { title: '12:00', dataIndex: '12', key: '12' },
  { title: '13:00', dataIndex: '13', key: '13' },
  { title: '14:00', dataIndex: '14', key: '14' },
  { title: '15:00', dataIndex: '15', key: '15' },
  { title: '16:00', dataIndex: '16', key: '16' },
  { title: '17:00', dataIndex: '17', key: '17' },
  { title: '18:00', dataIndex: '18', key: '18' },
  { title: '19:00', dataIndex: '19', key: '19' },
  { title: '20:00', dataIndex: '20', key: '20' },
  { title: '21:00', dataIndex: '21', key: '21' },
  { title: '22:00', dataIndex: '22', key: '22' },
  { title: '23:00', dataIndex: '23', key: '23' },
];
